/**
 * Copyright (c) 2014- 2015 YCY Group Holding Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.jkwzms.system.resource.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.jkwzms.common.repository.BaseRepository;
import com.jkwzms.system.resource.entity.Resource;

/**
 * <p>
 * User: Jack Liang
 * <p>
 * Date: 13-2-4 下午3:00
 * <p>
 * Version:1.0.0
 */
public interface ResourceRepository extends BaseRepository<Resource, Long> {
    @Modifying
    @Query("from Resource where identity = ?1")
    List<Resource> findToIdentity(String identity);
}
